package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.domain.Content;
import com.ruoyi.system.api.domain.Item;
import com.ruoyi.system.api.domain.SysUser;
import com.ruoyi.system.api.factory.RemoteManagerFallbackFactory;
import com.ruoyi.system.api.factory.RemoteUserFallbackFactory;
import com.ruoyi.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 用户服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteManagerService", value = ServiceNameConstants.MANAGER_SERVICE, fallbackFactory = RemoteManagerFallbackFactory.class)
public interface RemoteManagerService
{
	@GetMapping("/content/findContentsByCateId/{id}")
	R<List<Content>> findContentsByCateId(@PathVariable("id") Long cateId);

	@GetMapping("/content/findById/{id}")
	R<Content> findById(@PathVariable("id") Long id);

	@GetMapping("/item/findAll")
	R<List<Item>> findAll();

	@GetMapping("/item/findById/{id}")
	R<Item> findItemById(@PathVariable("id") Long id);
}
